<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
    <form th:action="@{/test}" method="post"
          enctype="multipart/form-data">

        <input type="file" name="file" id="exampleInputFile">

        <input type="submit">

    </form>
</div>
</body>
</html>